// 封装的自定义指令
export const errorimg = ('errorimg', {
  inserted(el, binding) {
    el.onerror = () => {
      el.src = binding.value
    }
  }
})

export const color = ('color', {
  inserted(el, binding) {
    el.style.color = binding.value
  }
})
